package com.cyz.web.app.callback;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Client {


    public static void main(String[] args) {
        Task task = new TaskImpl();
        task.executeWith(()-> delayPerform());

        task.executeWith(()-> log.info("执行回调方法"));
    }


    private static void delayPerform(){
        log.info("执行回调方法");
    }

}
